package bd.com.escenic.flexilunch.model;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/model/Entity.java $
 * $Id: Entity.java 8 2009-05-21 07:21:52Z shihab.uddin@gmail.com $
 * $Date: 2009-05-21 07:21:52 +0000 (Thu, 21 May 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 8 $
 */

import java.util.Date;

/**
 * $Id: Entity.java 8 2009-05-21 07:21:52Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 8 $
 */
public interface Entity extends Comparable<Entity> {

  static enum Type {
    COST, ITEM, ORDER, PAYMENT, PERMISSION, PRICE, RESTAURANT, ROLE, USER
  }

  int getId();

  void setId(int pId);

  String getName();

  void setName(String pName);

  String getDescription();

  void setDescription(String pDescription);

  Date getDateCreated();

  void setDateCreated(Date pDateCreated);

  Date getDateUpdated();

  void setDateUpdated(Date pDateUpdated);

  Type getType();
}
